(function(angular) {
	'use strict';
	angular.module("fs.waf").factory("limitRequestService", limitRequestService);
	limitRequestService.$inject = [ "$q", "ajaxServiceFactory" ];
	function limitRequestService($q, ajaxServiceFactory) {

		function getTxnTypeOptions() {
			var ajaxService = ajaxServiceFactory.buildAjaxService({
				getTxnTypeOptions : {
					url : "do/apf/dataList/txnType",
					method : "post"
				}
			});
			return $q(function(resolved, rejected) {
				ajaxService.getTxnTypeOptions().then(function(response) {
					resolved(response ? response.data : []);
				}, angular.noop);
			});
		}
		return {
			getTxnTypeOptions : getTxnTypeOptions
		};
	}
})(angular);
